package gui;

import java.awt.Color;
import java.awt.Container;

import javax.swing.JFrame;

import data.PDMNode;

public class TestFrame extends JFrame
{
	private GraphPlane gp;
	public TestFrame()
	{
		PDMNode firstRep = new PDMNode();
		firstRep.setDuration(4);
		firstRep.setEarlyStart(11);
		firstRep.setEarlyEnd(22);
		firstRep.setLateStart(33);
		firstRep.setLateEnd(44);
		
		gp = new GraphPlane();
		
		gp.add(firstRep);
		this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		
	}
	
	public void build()
	{
		this.setBackground(Color.WHITE);
		this.setBounds(100, 100, 100, 100);
		this.add(gp);
		this.setVisible(true);
	}
	
	public static void main(String[] args)
	{
		TestFrame client = new TestFrame();
		client.build();
	}
}
